package com.cold.system.domain.bo;

import com.cold.common.core.validate.AddGroup;
import com.cold.common.core.validate.EditGroup;
import com.cold.system.domain.TbWareHouses;
import com.cold.common.mybatis.core.domain.BaseEntity;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 仓库信息业务对象 tb_ware_houses
 *
 * @author 鄧滔滔
 * @date 2024-10-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = TbWareHouses.class, reverseConvertGenerate = false)
public class TbWareHousesBo extends BaseEntity {

    /**
     * 主键ID
     */
    @NotNull(message = "主键ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 仓库名称
     */
    @NotBlank(message = "仓库名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String warehouseName;

    /**
     * 仓库地址
     */
    @NotBlank(message = "仓库地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String warehouseAddress;

    /**
     * 联系人
     */
    @NotBlank(message = "联系人不能为空", groups = { AddGroup.class, EditGroup.class })
    private String contactPerson;

    /**
     * 联系电话
     */
    @NotBlank(message = "联系电话不能为空", groups = { AddGroup.class, EditGroup.class })
    private String contactPhone;

    /**
     * 状态 (0: 停用, 1: 活跃)
     */
    private Long status;

    /**
     * 备注
     */
    private String remark;


}
